package service;

import entity.Leave;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LeaveService {
    //获取全部请假申请
    List<Leave> getAllLeave();

    //修改请假申请
    boolean updateLeave(Leave leave);

    //添加请假申请
    boolean addLeave(Leave leave);

    //删除请假申请
    boolean deleteLeave(String leaveID);

    //获取单个请假表
    Leave getLeaveByLeaveID(String leaveID);

    //审核请假申请
    boolean examineLeave(Leave leave);

    //根据leaveID,courseID或stuNo模糊查询请假申请
    List<Leave> searchLeave(String leaveID, String courseID,  String stuNo);
}
